package File;

import java.io.*;

public class MyFile3 {
    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_17\\src\\Text.text")){
            //写文件操作
            outputStream.write(97);
            outputStream.write(99);
            outputStream.write(93);
            outputStream.write(97);
            outputStream.write(91);
            outputStream.write(91);
            outputStream.write(91);
            outputStream.write(97);
            outputStream.write(97);
            outputStream.write(97);
            outputStream.write(97);
            outputStream.write(97);
            outputStream.write(97);
            outputStream.write(97);
/*            InputStream inputStream = new FileInputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_17\\src\\Text.text");
            byte[] bytes = new byte[1024];
            inputStream.read(bytes);
            outputStream.write(bytes);*/
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
